package com.yan.service.impl;

import com.yan.service.DemoService;

/**
 * TODO
 *
 * @Author: 汪焰
 * @Date: 2021/5/26 21:25
 */
public class DemoServiceImpl implements DemoService {
    @Override
    public String sdf(int age) {
        System.out.println("开始执行业务方法");

        String result="当前年龄"+age;

        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


        System.out.println("业务方法执行结束");


        return result;
    }
}
